package com.bizfx.component.skins
{
	import flash.display.Graphics;
	
	import mx.skins.ProgrammaticSkin;
	
	public class CollapsibleVDividerSkin extends ProgrammaticSkin
	{
		
		public function CollapsibleVDividerSkin()
		{
			super();
		}
		
		override public function get measuredWidth():Number
		{
			return 23;
		}
		
		override public function get measuredHeight():Number
		{
			return 6;
		}
		
		override protected function updateDisplayList(w:Number, h:Number):void
		{
			var g:Graphics = this.graphics;
			var i:int = 0;
			g.clear();
			g.lineStyle(0, 0x000000, 0);
			g.beginFill(0x6593CF, 1);
			for (i = 0; i < 5; i++)
			{
				g.drawRect(2 + (i - 1) * 4, 2, 2, 2);
			}
			g.endFill();
			g.beginFill(0xF9F9FB, 1);
			for (i = 0; i < 5; i++)
			{
				g.drawRect(3 + (i - 1) * 4, 3, 2, 2);
			}
			g.endFill();
			g.beginFill(0xADD1FF, 1);
			for (i = 0; i < 5; i++)
			{
				g.drawRect(3 + (i - 1) * 4, 3, 1, 1);
			}
			g.endFill();
		}
		
	}
}